/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exception;

/**
 *
 * @author Alex
 */
public class NoInsuranceForThisCar extends Exception {
    protected String carRegistration;
    
    public NoInsuranceForThisCar(String carRegistration) {
        this.carRegistration = carRegistration;
    }

    public String toString() {
        return "No insurance was subscribed for the car registered as '"
                + carRegistration + "'.";
    }
    
    
    
}
